package com.glodon.paas.monitor.server.biz.service.impl;

import java.util.Collections;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.glodon.paas.monitor.server.biz.domain.TaskEntity;
import com.glodon.paas.monitor.server.biz.mapper.TaskMapper;
import com.glodon.paas.monitor.server.biz.service.TaskService;
import com.glodon.paas.monitor.server.dto.MonitorQueryDTO;

@Service("taskService")
public class TaskServiceImpl implements TaskService{
	
	@Autowired
	private TaskMapper			taskMapper;

	public List<TaskEntity> getTaskByMonitorQueryDTO(MonitorQueryDTO monitorQueryDTO) {
		if (null == monitorQueryDTO) {
			return Collections.EMPTY_LIST;
		}
		return taskMapper.getTaskByMonitorQueryDTO(monitorQueryDTO);
	}
}
